﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Demo07</title>
    <style type="text/css">
        h2, h3 {
            text-align: center;
        }

        .MyTable {
            margin: 10px auto;
            border-collapse: collapse;
        }
    </style>
</head>
<body >
    <table width="1000" border="1" class="MyTable">
        <tr>
            <th>员工编号</th>
            <th>部门名称</th>
            <th>姓名</th>
            <th>电话</th>
            <th>工资</th>
            
        </tr>
        @foreach (var item in ViewBag.listView)
        {
            <tr>
                <td>@item.EmpId</td>
                <td>@item.DeptName</td>
                <td>@item.EmpName</td>
                <td>@item.EmpPhone</td>
                <td>@item.EmpSalary</td>
               
            </tr>
        }
    </table>

</body>
</html>
